/**
 * 
 */
package org.jackysoft.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.struts2.json.annotations.JSON;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.jackysoft.entity.AbstractAppendinceItem;
import org.jackysoft.util.MySqlSchema;

/**
 * @author qujiakang
 * 
 */
@Entity@Table(schema=MySqlSchema.Businessbase)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class HTMLTemplate extends AbstractAppendinceItem {

	
	/**
	 * 序列化编号
	 */
	private static final long serialVersionUID = -3257678896911898893L;
	private String content;

	

	public void setContent(String content) {
		this.content = content;
	}

	@Transient
	@JSON(serialize=false)
	public String getContent() {
		return content!=null?content:new String(data);
	}
	
}
